<?php

class Plugins_SitemapPlugin extends Plugins_StrategyPlugin
{
	const ROUTE_SITEMAP = 'sitemap';
	const PARAMETRE_SITEMAP = 'sitemap.xml';
	const CONTROLLER_SITEMAP_DEFAULT = 'sitemap';
	

	/**
	 * (non-PHPdoc)
	 * @see Zend/Controller/Plugin/Zend_Controller_Plugin_Abstract#routeStartup($request)
	 *
	 * Déclare la route pour le robots
	 */
	public function routeStartup(Zend_Controller_Request_Abstract $request)
	{
		$front = Zend_Controller_Front::getInstance();
		$router = $front->getRouter();
		$router->addRoute(self::ROUTE_SITEMAP, new Zend_Controller_Router_Route_Static(self::PARAMETRE_SITEMAP, array('controller' => self::CONTROLLER_SITEMAP_DEFAULT, 'action' => 'index', 'module' => 'default')));
	}
}